Package-level declarations

Types

Link copied to clipboard
data class AgenticTool(val definition: Tool.Definition, val metadata: Tool.Metadata = Tool.Metadata.DEFAULT, val llm: <Error class: unknown class> = LlmOptions(), val tools: List<Tool> = emptyList(), val systemPromptCreator: SystemPromptCreator = { defaultSystemPrompt(definition.description) }) : Tool

An agentic tool that uses an LLM to orchestrate other tools.

Link copied to clipboard

Tool decorator that executes the wrapped tool, then conditionally triggers replanning based on the result.

Link copied to clipboard
interface MatryoshkaTool : Tool

A tool that contains other tools, enabling progressive tool disclosure.

Link copied to clipboard
data class ReplanContext(val result: Tool.Result, val agentProcess: AgentProcess, val tool: ToolInfo)

Context provided to ReplanDecider for making replanning decisions.

Link copied to clipboard
fun interface ReplanDecider

Functional interface for deciding whether to trigger replanning based on tool results.

Link copied to clipboard
data class ReplanDecision constructor(val reason: String, val blackboardUpdater: BlackboardUpdater = BlackboardUpdater {})

Decision returned by ReplanDecider to indicate whether replanning is needed.

Link copied to clipboard
class ReplanningTool constructor(val delegate: Tool, reason: String, blackboardUpdater: ReplanningToolBlackboardUpdater = ReplanningToolBlackboardUpdater { bb, content -> bb.addObject(content) }) : DelegatingTool

Tool decorator that executes the wrapped tool, adds its result to the blackboard, then throws ReplanRequestedException to terminate the tool loop and trigger replanning.

Link copied to clipboard

Callback to update the blackboard with tool result content. Defined as a fun interface for Java interoperability.

Link copied to clipboard

Create a system prompt given the current AgentProcess as context.

Link copied to clipboard
interface Tool : ToolInfo

Framework-agnostic tool that can be invoked by an LLM. Adapters in SPI layer bridge to Spring AI ToolCallback or LangChain4j ToolSpecification/ToolExecutor.

Link copied to clipboard
interface ToolInfo

Tool information including definition and metadata, without execution logic.

Link copied to clipboard

InputSchema implementation that generates JSON schema from a Class type. Uses reflection to extract properties and their types.